//
//  Worker.m
//  Memories
//
//  Created by Brennan Stehling on 10/26/09.
//  Copyright 2009 SmallSharpTools LLC. All rights reserved.
//

#import "Worker.h"

@implementation Worker

@synthesize string1 = _string1;
@synthesize string2 = _string2;
@synthesize array = _array;

- (void)dealloc {
	[_string1 release];
	[_string2 release];
	[_array release];
	[super dealloc];
}

- (void) doAction1 {
	NSLog(@"self1 = %@", self);
}

- (void) doAction2 {
	_string1 = @"test";
	_string2 = @"test";
	NSMutableArray *array = [[NSMutableArray alloc] init];
	[array addObject:@"test1"];
	[array addObject:@"test2"];
	[array addObject:@"test3"];
	_array = array;
	[_array retain];
	[array release];
	NSLog(@"self2 = %@", self);
}

- (NSString*) description {
	return [NSString stringWithFormat:@"Worker: %@, %@, %@", 
			_string1, _string2, _array];
}

@end
